import request from '@/utils/request'

// 查询定制详情
export function customDetailById(id) {
  return request({
    url: `/CustomizeRequest/${id}`,
    method: 'get',
  })
}

// 修改治理后数据资源
export function dataSourceEditMenu(data) {
  return request({
    url: '/datasourceContent/updateByAdmin',
    method: 'put',
    data: data
  })
}
// 查询审核记录列表
export function listLog(query) {
  return request({
    url: '/audit/log/list',
    method: 'get',
    params: query
  })
}

// 查询认证记录列表
export function listProveLog(query) {
  return request({
    url: '/prove/list',
    method: 'get',
    params: query
  })
}

// 查询审核记录详细
export function getLog(logId) {
  return request({
    url: '/audit/log/' + logId,
    method: 'get'
  })
}

// 新增审核记录
export function addLog(data) {
  return request({
    url: '/audit/log',
    method: 'post',
    data: data
  })
}

// 审核操作
export function operateLog(data) {
  return request({
    url: '/audit/log/operate',
    method: 'post',
    data: data
  })
}

// 修改审核记录
export function updateLog(data) {
  return request({
    url: '/audit/log',
    method: 'put',
    data: data
  })
}
// 审核认证
export function auditUserProve(data) {
  return request({
    url: '/prove/audit',
    method: 'put',
    data: data
  })
}

// 删除审核记录
export function delLog(logId) {
  return request({
    url: '/audit/log/' + logId,
    method: 'delete'
  })
}
